package com.qing.microservices.shirostudy.common.utils;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * @author guoqf
 */
public class SaltUtil {

    private static final String SEED = "01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz(#$^@%&*!)";

    public static String getSalt(int length) {
        return RandomStringUtils.random(length, SEED);
    }
}
